package Lab02.test05;


public class Box {



        //属性：长，宽，高


      float len;

    float wid;

   float height;



          Box(float len,float wid,float height)

  {

           this.len=len;

           this.wid=wid;

           this.height=height;

        }



        //行为：求体积



           public double Size(){

            return len*wid*height;

        }



     public static void main(String[] args) {

           Box b1=new Box(3,4,2);

       b1.Size();



             }

}

